package com.hejx.managecenter.common.enums;

/**
 * Created by 追风少年
 *
 * @email doubihah@foxmail.com
 * @create 2018/04/10 09:09
 **/
public enum ResultEnum {

    UNKNOW_ERROR(-1, "未知错误"),
    PARAM_ERROR(-2, "参数错误"),
    TOKEN_INVALID(-3, "Token invalid"),
    SUCCESS(0, "成功"),
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
